package homework.day03;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Random;

/**
 * 生成10个0-100之间的不重复的随机数,并输出
 * @author Xiloer
 *
 */
public class Test03 {
	public static void main(String[] args) {
		Random r = new Random();
		Collection<Integer> c=new ArrayList<>();
		for (int i = 0; i < 10; i++){
			int num=r.nextInt(100);
			c.add(num);

		}
		System.out.println(c);
		
	}
}
